package com.jshop.admin.sys.dao;


import com.jshop.admin.sys.entity.SysMenuEntity;
import com.jshop.admin.sys.entity.SysRoleMenuEntity;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 角色与菜单对应关系
 *
 */
@Component
public interface SysRoleMenuDao extends BaseDao<SysRoleMenuEntity> {
    void save(Map<String, Object> map);
    void delete(Long roleId);
    /**
     * 根据角色ID，获取菜单ID列表
     */
    List<Integer> queryMenuIdList(Long roleId);

    List<SysMenuEntity> findMenuByType(@Param("type") Integer type);
}
